package com.sdhs.paas.sdk.core;

import static com.sdhs.paas.sdk.core.PaasResponseEnum.SUCCESS;

import com.fasterxml.jackson.annotation.JsonPropertyOrder;

/**
 * SDK标准HTTP响应参数
 *
 * @author wjj
 * 
 * @param <T>
 *            响应报文里，微服务开发者自定义的部分，必须是一个{@link IPaasParam}对象
 */
@JsonPropertyOrder({ "code", "msg", "request_info", "http_status", "exception_msg", "extend_info", "body" })
public class PaasBaseResponse<T extends IPaasParam> extends PaasBaseRequest<T> {

	/**
	 * 
	 */
	private static final long serialVersionUID = -3385102147095861884L;

	private String request_info;
	private int http_status;
	private String exception_msg;
	private String extend_info;
	private String code = SUCCESS.code();
	private String msg = SUCCESS.msg();

	public PaasBaseResponse() {
		super();
	}

	public PaasBaseResponse(T body) {
		super(body);
	}

	public String getRequest_info() {
		return request_info;
	}

	public void setRequest_info(String request_info) {
		this.request_info = request_info;
	}

	public int getHttp_status() {
		return http_status;
	}

	public void setHttp_status(int http_status) {
		this.http_status = http_status;
	}

	public String getException_msg() {
		return exception_msg;
	}

	public void setException_msg(String exception_msg) {
		this.exception_msg = exception_msg;
	}

	public String getExtend_info() {
		return extend_info;
	}

	public void setExtend_info(String extend_info) {
		this.extend_info = extend_info;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

}
